import Vue from 'vue'

export default {
  categoryService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.constantkind,config).then(r=>{
      callback(r.data);
    });
  },
  searchConstantService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.selectconstant,config).then(r=>{
      callback(r.data);
    });
  },
  delConstantService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.delconstant,config).then(r=>{
      callback(r.data);
    });
  },
  delConstantAllService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.delconstantall,config).then(r=>{
      callback(r.data);
    });
  },
  addConstantService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.addconstant,config).then(r=>{
      callback(r.data);
    });
  },
  editConstantService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.editconstant,config).then(r=>{
      callback(r.data);
    });
  },
  selectConstantNoPageService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.selectconstantnopage,config).then(r=>{
      callback(r.data);
    });
  },

}